UnityEditor.SessionState.SetFloat C# (CSharp) Method

SetFloat() private method

private SetFloat ( string key, float value ) : void
key string
value float
return void
        internal static extern void SetFloat(string key, float value);
        [MethodImpl(MethodImplOptions.InternalCall)]

Usage Example

示例#1
0
        public GameObject CreateParticleSystem(ParticleSystem parentOfNewParticleSystem, SubModuleUI.SubEmitterType defaultType)
        {
            string     nextParticleSystemName = this.GetNextParticleSystemName();
            GameObject gameObject             = new GameObject(nextParticleSystemName, new Type[]
            {
                typeof(ParticleSystem)
            });

            if (gameObject)
            {
                if (parentOfNewParticleSystem)
                {
                    gameObject.transform.parent = parentOfNewParticleSystem.transform;
                }
                gameObject.transform.localPosition = Vector3.zero;
                gameObject.transform.localRotation = Quaternion.identity;
                ParticleSystem component = gameObject.GetComponent <ParticleSystem>();
                if (defaultType != SubModuleUI.SubEmitterType.None)
                {
                    component.SetupDefaultType((int)defaultType);
                }
                SessionState.SetFloat("CurrentEmitterAreaScroll", this.m_EmitterAreaScrollPos.x);
                return(gameObject);
            }
            return(null);
        }
All Usage Examples Of UnityEditor.SessionState::SetFloat