SerializableWithUID
Lens Studio v1.0.0+
Inherits from ScriptObject
Child Classes: Asset
, Component
, SceneObject
Description
Low-level data class.
Methods
isSame(SerializableWithUID other)
: Boolean
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Inherited Methods
getTypeName()
: String
Returns the name of this object’s type.
isOfType(String type)
: Boolean
Returns true if the object matches or derives from the passed in type.
Examples
// @input Component.MeshVisual visualA
// @input Component.MeshVisual visualB
// Check if two MeshVisuals are using the same texture
var textureA = script.visualA.mainPass.baseTex;
var textureB = script.visualB.mainPass.baseTex;
if(textureA.isSame(textureB)) {
print("The textures match");
}
Still Looking for help?
Visit Support