public void Start()
    {
        //Debug.Log( "ExampleScript: Start" );

        parmIndex       = 0;
        parmNames       = null;
        myAsset         = null;
        parmName        = "";
        parmSize        = 0;
        parmType        = HoudiniAssetAccessor.ParmType.INVALID;
        parmIntValue    = null;
        parmFloatValue  = null;
        parmStringValue = null;

        // If the game object has a HAPI_Asset component then get
        // the parameters for this asset and set the selected
        // parameter to be the asset's first parameter
        myAsset = HoudiniAssetAccessor.getAssetAccessor(gameObject);
        if (myAsset != null)
        {
            Debug.Log("Asset name: " + myAsset.prName);
            parmNames = myAsset.getParameters();
            setSelectedParameter();
        }
    }
Esempio n. 2
0
	public void Start() 
	{
		//Debug.Log( "ExampleScript: Start" );

		parmIndex = 0;
		parmNames = null;
		myAsset = null;
		parmName = "";
		parmSize = 0;
		parmType = HoudiniAssetAccessor.ParmType.INVALID;
		parmIntValue = null;
		parmFloatValue = null;
		parmStringValue = null;

		// If the game object has a HAPI_Asset component then get
		// the parameters for this asset and set the selected
		// parameter to be the asset's first parameter
		myAsset = HoudiniAssetAccessor.getAssetAccessor( gameObject );
		if ( myAsset != null )
		{
			Debug.Log( "Asset name: " + myAsset.prName );
			parmNames = myAsset.getParameters();
			setSelectedParameter();
		}
	}