hi folks, I create a prefab with variables: fx(int) = 1 and type(string) = “boom” .
and I save it in a folder data\objects\
Then I create a new blank scene and inserts there Prefab. but variables does not indicated in atribute inspector,
but i just know that variables in the file exist.
<?xml version="1.0"?>
<node id="3">
<attribute name="Is Enabled" value="true" />
<attribute name="Name" value="boom" />
<attribute name="Position" value="13.3563 -2.07224 0.489285" />
<attribute name="Rotation" value="1 0 0 0" />
<attribute name="Scale" value="1 1 1" />
<attribute name="Variables">
<variant hash="1360791162" type="String" value="boom" />
<variant hash="6691218" type="Int" value="1" />
</attribute>
<component type="StaticModel" id="16777249">
<attribute name="Model" value="Model;Models/Icosphere.mdl" />
<attribute name="Material" value="Material;Materials/MT_Boom.xml" />
</component>
<component type="Light" id="16777250">
<attribute name="Color" value="1 0.5 0 1" />
<attribute name="Specular Intensity" value="0" />
<attribute name="Brightness Multiplier" value="3" />
<attribute name="Light Shape Texture" value="TextureCube;" />
</component>
<node id="16777234">
<attribute name="Is Enabled" value="true" />
<attribute name="Name" value="boomRing" />
<attribute name="Position" value="0 0 0" />
<attribute name="Rotation" value="1 0 0 0" />
<attribute name="Scale" value="1 1 1" />
<attribute name="Variables">
<variant hash="6691218" type="Int" value="1" />
</attribute>
<component type="StaticModel" id="16777251">
<attribute name="Model" value="Model;Models/BoomMesh.mdl" />
<attribute name="Material" value="Material;Materials/MT_BoomRing.xml" />
</component>
</node>
</node>
Why is this happening? How to make so that the variables of prefab were visible in the new scenes?