Here is tut I have created on how to use UI buttons and custom functions in play canvas
Plan to create lot more !!
Here is tut I have created on how to use UI buttons and custom functions in play canvas
Plan to create lot more !!
Great work! One small issue is that you don’t need the var count;
in global scope. By doing so, it creates a new property on the window
global object (and would be accessed by window.count
).
Adding this.count = 0
in the intialize function creates a new property on the script instance (this
object) and gives it a value of 0.
Thanks man !
So the variables ,I create in intiliaze function,e.g this.count=0;
Can I used this in any other function??
I am used to work in unity and you generally have to create variables outside any function to b used at during whole script
Yes, you can use them directly in the same script.