Skip to content

Commit 177c443

Browse files
authored
Update Readme
1 parent 9abc246 commit 177c443

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,14 @@ App Functionality is simple, just press the feature button you want to test. Som
4444

4545

4646
On code side, the only thing to keep in mind is to make a Script (like ``NativeToolkit.cs`` in the example) that have a reference to ``NativeToolkitPlugin`` and initialize the plugin doing:
47-
``pluginReferenceVariable = NativeToolkitPlugin.GetPlatformPluginVersion(this.gameObject.name);``
48-
49-
From here you can call all plugin features simply calling ``pluginReferenceVariable.`` and the feature you want, like ``pluginReferenceVariable.TakeShot()``.
47+
```csharp
48+
pluginReferenceVariable = NativeToolkitPlugin.GetPlatformPluginVersion(this.gameObject.name);
49+
```
50+
51+
From here you can call all plugin features simply calling ``pluginReferenceVariable.`` and the feature you want, like
52+
```csharp
53+
pluginReferenceVariable.TakeShot()
54+
```
5055

5156
If you don't want to implement all features callbacks, remember to only implement the desired feature interface, like ``INativeCamera``, instead of ``INativeToolkitPlugin``. This last one implements all features interfaces.
5257

0 commit comments

Comments
 (0)